package com.csthink.web.infrastructure.security.authentication.exception;

import org.springframework.security.web.firewall.RequestRejectedException;

/**
 * @author <a href="mailto:security.2009@live.cn">Mars</a>
 * @since 2023-09-12
 */
public class RequestRejectedWithoutStackTraceException extends RequestRejectedException {

    private static final long serialVersionUID = -3549072026113218188L;

    public RequestRejectedWithoutStackTraceException(String message) {
        super(message);
    }

    /**
     * This will suppress the stacktrace.
     *
     * @return
     */
    @Override
    public synchronized Throwable fillInStackTrace() {
        return this;
    }
}
